from State import *

class Event:
    def __init__(self, state, time):
        self.time = time
        self.state = state

    def interpolate(self, other, f):
        s = self.state.interpolate(other.state, f)
        e = Event(s, f*self.time + (1.0-f)*other.time)
        return e
